package cn.golxen.goods.mapper;

import cn.golxen.commons.vo.CounterVO;
import cn.golxen.commons.vo.GoodsImageVo;
import cn.golxen.goods.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    List<Goods> selectGoodsByCategoryId(Integer id,String userId);

    Integer addGoods(@Param(value = "goods") Goods goods, String userId);

    Goods getGoodsByCode(String code,String userId);

    List<Goods> getGoodsList(String userId);


    Integer updateGoods(@Param(value = "goods") Goods goods,String userId);

    Integer deleteGoods(@Param(value = "code") List<String> code,String userId);

    List<Goods> selectGoodsByGoodsName(String name,String userId);

    Integer updateGoodsImage(@Param(value = "goodsImageVo") GoodsImageVo goodsImageVo,String userId);

    Integer updateGoodsInventory(@Param(value = "counterVo") List<CounterVO> counterVO,String userId);

    List<Goods> getGoodssByCode(String code,String userId);
}
